package com.heima.pojo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class Node {

    private Integer id;
    private String name;
    private String addr;
    private String areaCode; //所在区域Id
    private Integer createUserId;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long regionId;
    private Integer businessId;
    private Integer ownerId;
    private String ownerName;
    private Long vmCount;
    private LocalDateTime updateTime;
    private LocalDateTime createTime;
    //两个额外的表:
    private Region region;
    private Business businessType;

}
